package com.example.jobspringboot.task;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@EnableScheduling
public class SpringScheduleTask {

//    @Scheduled(cron = "* * * * * ?")
//    public void hello(){
//        System.out.println("执行任务:"+new Date().toLocaleString());
//    }
}
